using UnityEngine;
using System.Collections;

public class ButtonClose : MonoBehaviour {
	
	public GameObject target;
	
	void Start(){
		if(target == null) Debug.Log("Please set the close target!");
	}
	
	void OnClick(){
		UIManagement.Instance().CloseWindow(target);
	}
}
